//
//  PushManager.h
//  BESTKEEP-OC
//
//  Created by 武探 on 2016/10/26.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 推送管理类
 */
@interface PushManager : NSObject

-(instancetype)init NS_UNAVAILABLE;
+(instancetype)new NS_UNAVAILABLE;

/**
 *  获取推送实例
 */
+(instancetype)manager;

/** 注册用户通知(推送) */
-(void)registerUserNotification:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;

/** 远程通知注册成功委托 */
-(void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken;

/** 远程通知注册失败委托 */
-(void)application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error;

/** APP已经接收到“远程”通知(推送) - (App运行在后台/App运行在前台) */
-(void)application:(UIApplication*)application didReceiveRemoteNotification:(NSDictionary*)userInfo;

@end
